class SocketModel {
  String datatype;
  String msg;
  int status;
  dynamic data;

  SocketModel({this.datatype, this.msg, this.status, this.data});

  SocketModel.fromJson(Map<String, dynamic> json) {
    datatype = json['datatype'];
    msg = json['msg'];
    status = json['status'];
    data = json['data'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['datatype'] = this.datatype;
    data['msg'] = this.msg;
    data['status'] = this.status;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}
